home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / Button / Sources / Views.fr < prev   
Encoding:
Text File  |  1996-04-25  |  1.9 KB  |  72 lines  |  [TEXT/MPS ]

  1. //    File:        Views.fr
  2. //
  3. //    Contains:    Common (Platform independent) resources for Button part
  4. //
  5. //    Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  6.  
  7. #ifndef FWRESFIL_K
  8. #include "FWResFil.k"
  9. #endif
  10.  
  11. #ifndef FWVIEWS_FR
  12. #include "FWViews.fr"
  13. #endif
  14.  
  15. #ifndef FWNOTDEF_H
  16. #include "FWNotDef.h"     
  17. #endif
  18.  
  19. #ifndef DEFINES_K
  20. #include "Defines.k"
  21. #endif
  22.  
  23. //========================================================================================
  24. // Defines
  25. //========================================================================================
  26.  
  27. // Define a reference size for the layout (value doesn't matter since it will be adjusted 
  28. // to the actual size of the new frame)
  29.  
  30. #define H    FW_FIX(10)
  31. #define H1    H + FW_FIX(1)
  32.  
  33. //========================================================================================
  34. // resource FW_RFrameLayout(kButtonView)
  35. //========================================================================================
  36. // See constants in "FWViews.k", macros & resource types in "FWViews.fr"
  37.  
  38. resource FW_RFrameLayout(kButtonView)
  39. {
  40.     { H, H },            // layout size
  41.     {
  42.         FW_RButton
  43.         (
  44.             1,                                // view id
  45.             {0, 0, H, H},                    // bounds
  46.             FW_kFitToEnclosure,                // binding
  47.             FW_kButtonPressedMsg,            // control message
  48.             FW_kFrameReceiver,                // connect button to its frame 
  49.             0,                                // control value
  50.             FW_kPushButton,                    // button kind
  51.             FW_SYSTEM_FONT,
  52.             "Button"                        // title
  53.         ),
  54.         FW_RGrowBox
  55.         (
  56.             2,                                // View id
  57.             {H - FW_SBSIZE, H - FW_SBSIZE, H1, H1},    // Bounds
  58.             FW_kGrowBoxBinding                // standard grow box binding
  59.         )
  60.     },
  61.     {}    // No scroller
  62. };
  63.  
  64. //----------------------------------------------------------------------------
  65. //    Strings
  66. //----------------------------------------------------------------------------
  67.  
  68. resource FW_kMULTISTRING(kButtonDialogStrings)
  69. {
  70.     kNoAppleScriptMsg, "The attached script cannot be executed because AppleScript is not installed.";
  71. };
  72.